package com.china08.yxyapi.entity.db.res;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.china08.yxyapi.entity.BaseEntityNoId;

/**
 * 学期表 如:七年级上 七年级下 选修 必修等 添加数据时请手动生成id
 * 
 * @author Json
 *
 */
@Entity
@Table(name = "yxy_res_semester", catalog = "yxy_res")
public class YxyResSemester extends BaseEntityNoId {

    private static final long serialVersionUID = 1L;

    @Id
    @Column(length = 32)
    private String id;

    @Column(length = 255, nullable = false)
    private String name;
    // 状态信息0无效 1 有效
    @Column
    private Integer status = 1;
    /**
     * 描述
     */
    @Column(length = 255)
    private String descript;

    @Column
    private Integer orderNum = 0;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public String getDescript() {
        return descript;
    }

    public void setDescript(String descript) {
        this.descript = descript;
    }

}
